{extend name="../../admin/view/main"}

{block name='content'}
<form action="{:sysuri()}" class="layui-card layui-form" data-auto="true" method="post">
    <div class="layui-card-body">


        <label class="layui-form-item relative block">
            <span class="help-label"><b>流程名称</b></span>
            <input class="layui-input" name="process_name" placeholder="请输入流程名称" required value='{$vo.process_name|default=""}'>
        </label>

        <div class="layui-form-item label-required-prev">
            <span class="help-label"><b>封面图</b></span>
            <div class="relative block label-required-null">
                <input class="layui-input think-bg-gray" name="cover_img" placeholder="请上传封面图" readonly required value='{$vo.cover_img|default=""}'>
                <a class="layui-icon layui-icon-upload input-right-icon" data-file data-field="cover_img" data-type="gif,png,jpg,jpeg"></a>
            </div>
        </div>

        <div class="hr-line-dashed"></div>
        {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}

        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">保存数据</button>
            <button class="layui-btn layui-btn-danger" data-history-back data-confirm="确定要取消编辑吗？" type='button'>取消编辑</button>
        </div>
    </div>

</form>

<script>
    $('input[name="cover_img"]').uploadOneImage();
</script>
{/block}
